//
//  WillShakeView.m
//  B段项目
//
//  Created by 徐茂怀 on 15/11/11.
//  Copyright © 2015年 徐茂怀. All rights reserved.
//

#import "WillShakeView.h"
#import "FitHeader.h"
@implementation WillShakeView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        [self createView];
    }
    return self;
}
-(void)createView
{
    _myImageView = [[UIImageView alloc]init];
    _myImageView.image = [UIImage imageNamed:@"chi.png"];
    [self addSubview:_myImageView];
    
    _filter = [[UIView alloc] init];
    _filter.backgroundColor = [UIColor blackColor];
    _filter.alpha = 0.05;
    [self addSubview:_filter];
    
    _welcomeLabel = [[UILabel alloc] init];
    _welcomeLabel.text = @"摇美食啦";
    _welcomeLabel.textColor = [UIColor yellowColor];
    _welcomeLabel.font = [UIFont systemFontOfSize:50 * FitWidth];
    _welcomeLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_welcomeLabel];
    

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _welcomeLabel.frame = CGRectMake(0 * FitWidth, 100 * FitHeight, 375 * FitWidth, 100 * FitHeight);
        _filter.frame = self.frame;
    _myImageView.frame = self.frame;
}
@end
